package com.inspur.smartclosing.generalledger.config;

import com.inspur.smartclosing.generalledger.service.impl.ClosingServiceImpl;
import io.iec.edp.caf.rest.RESTEndpoint;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

import javax.annotation.Resource;

@Configuration(proxyBeanMethods = false,value = "com.inspur.smartclosing.generalledger.config.ClosingConfig")
@ComponentScan("com.inspur.smartclosing.generalledger.service")
public class ClosingConfig {
    @Resource
    ClosingServiceImpl iClosingService;

    @Bean
    public RESTEndpoint CServiceEndpointData(){
        return new RESTEndpoint("/fi/gl/ext/v1.0", iClosingService);
    }
}
